package learn.design.patterns.F_Proxy.Static;

import learn.design.patterns.F_Proxy.Service;

public class ServiceProxy implements Service {
    private Service realService;

    public ServiceProxy(Service realService) {
        this.realService = realService;
    }

    @Override
    public void doSomething() {
        System.out.println("Before proxy action...");
        realService.doSomething();
        System.out.println("After proxy action...");
    }
}
